package com.example.take_out_admin_api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        name = "take-out-admin",
        contextId = "take-out-admin"
)
@Component
public interface AdminClient {
    @GetMapping("/employeeApi/{token}")
    boolean validateToken(@PathVariable("token") String token);

}
